package com.my.util;

import com.my.bean.User;

import javax.servlet.http.HttpSession;

/**
 *
 * Created by Zhang on 2018/9/12.
 * 张
 */
public class SessionUtil {
    //获取session中的User
    public static  User getSessionUser(HttpSession session){
        return   (User)  session.getAttribute("user");
    }

}
